package com.example.qt.ptplatform.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Builder;
import lombok.Data;

import java.time.LocalDateTime;

@TableName("torrent_report")
@Data
@Builder
public class TorrentReport {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private Integer userId;
    private Integer peerId;
    private Integer torrentId;
    private String infoHash;
    private Long uploaded;
    private Long downloaded;
    @TableField("`left`")
    private Long left;
    private String event;
    private String  ip;
    private Integer port;
    private LocalDateTime reportTime;
}
